﻿using System;
using GameFramework.UI;
using UnityEngine;
using UnityEngine.UIElements;

namespace Game.ui
{
    public class TestContainerScript:MonoBehaviour
    {
        private TestContainerView _view;
        // Start is called before the first frame update
        private VisualElement root;
        private Button tpBtn;
        void Start()
        {
            _view = new TestContainerView();
            root = GetComponent<UIDocument>().rootVisualElement;
            _view.setRootElement(root);
            tpBtn = root.Q<Button>("tp");
        }

        private void Update()
        {
            // tpBtn.worldBound;
            // tpBtn.layout.position
        }
    }
}